package com.ls.controller.alipay.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AlipayModel {
    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不得为空")
    private String  orderNum;
    /**
     * 产品类型
     */
    @NotNull(message = "产品类型不得为空")
    @Max(value = 3)
    @Min(value = 1)
    private Integer productType;
}
